package com.itheima.xxljob.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

@Component
public class HelloJob {

    /**
     * @XxlJob("demoJobHandler") demoJobHandler为任务管理的 任务的JobHandler名称
     */
    @XxlJob("demoJobHandler")
    public void helloJob() {
        System.out.println("简单任务执行了......");
    }
}
